// 导入封装好的网络请求类工具
import Network from '../network';
import request from '../../utils/request';

// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);
export const PostUserLogin = (username, password) => Network.post('/loginPage/login', {
    username: username,
    password: password
});

//接口授权--通过用户名实现
export const GetMenusByRole = (username) => {
    return request({
        url: `/loginPage/getMenusByRole/${username}`,
        method: 'get',
    })
}